package com.cdu.practicaltraining.care.service.impl;


import com.cdu.practicaltraining.care.mapper.PatientsDetailMapper;
import com.cdu.practicaltraining.care.service.PatientsDetailService;
import com.cdu.practicaltraining.pojo.PatientsDetail;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service
public class PatientsDetailServiceImpl implements PatientsDetailService {

    @Resource
    private PatientsDetailMapper patientsDetailMapper;
    @Override
    public int insertPatientsDetail(PatientsDetail patientsDetail) throws Exception {
        return patientsDetailMapper.insertPatientsDetail(patientsDetail);
    }

    @Override
    public PatientsDetail findById(int id) throws Exception {
        return patientsDetailMapper.findById(id);
    }

}
